package edu.task.snake.model;


import java.awt.event.ActionEvent;

public class Frog extends Character {
    int x = 0;
    int y = 0;

    public Frog() {
    }

    public Frog(int width, int height) {
        setPosition(width,height);
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public void setPosition(int x, int y) {
        this.x = x;
        this.y = y;
        fireActionPerformed(new ActionEvent(Frog.this,0,getActionCommand()));
    }

}
